package com.fkjslee.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fkjslee
 * @date 2018/5/5 at 17:30
 * Copyright (c) 2018 fkjslee. All rights reserved.
 */

@Configuration
public class TestConfiguration {
    @Bean
    public IRule ribbonRule() {
//        return new RandomRule();
//        return new BestAvailableRule();
//        return new MyRule();
        return new RoundRobinRule();
    }
}
